logging system manager
๐ Feature description - Error system managerโ
- ๐ป Error system management (server and client website) ๐ซ 2023-11-05 ๐
2023-11-12 โ
2023-11-12
- Pushing errors from client โ 2023-11-06
- Database rules for granting access to read and write โ 2023-11-06
- Creating a
feature flag
to easily activate or deactivate this error system manager โ 2023-11-09 - Finish with testing the firestore rules โ 2023-11-12
- ๐ป Error system management (logs website) ๐ซ 2023-11-05 ๐
2023-11-12 โ
2023-11-12
- Cleaning website โ 2023-11-07
- Creating a table and fulfill it with all the errors in the errors collection โ 2023-11-07
- Only user with role
admin
should be able to access this website โ 2023-11-07 - Enable/disable the
feature flag
from the logs website โ 2023-11-09
๐ Scenarios:โ
โ (0) Server error managerโ
Given a user is doing any action
When an error is generated
Then send a notification to the error system management
The name of the document will be [2023_11_06_ErrorType]
The notification is stored in a collection called errors
where each document will contain:
export type BusinessError = {
ย ย // User
ย ย user_uid?: string;
ย ย // Error
ย ย error_name: string;
ย ย error_message: string;
ย ย error_timestamp?: string;
ย ย error_stack?: string;
}
The collection errors
should be with the next permissions:
- write permission - everybody
- read permission - nobody
This error system manager will be used in very critical situations like for example:
export const SmartContractError = createErrorFactory("SmartContractError");
export const SubscriptionError = createErrorFactory("SubscriptionError");
export const LoginError = createErrorFactory("LoginError");
โ (1) Website error managerโ
Given I am authenticated user with a specific email accepted by the project
When I log in to a new website called `full-stack-template-errors`
Then I can see a table describing all the errors that were sent from the client